import 'package:dio/dio.dart';

class ReqHome {
  final Dio _dio;

  ReqHome(this._dio);

  //推荐专家
  recommendExpert() {
    return _dio
        .get('http://test.globletech.cn/test/projectInfo/pageQueryList.json');
  }

  //活动列表
  activityList() {
    return _dio.get('/activity/list');
  }

  //首页推荐数据
  recommendList() {
    return _dio.get('/recommend/home');
  }

  // 首页 加载更多新闻数据
  recommendMoreNews(int offset) {
    print('offset: $offset');
    return _dio.get('/news/list?', queryParameters: {"offset": offset});
  }

  //需求列表
  demandList() {
    return _dio.get('/demand/list');
  }

  //服务列表
  serviceList() {
    return _dio.get('/service/list');
  }

  //项目列表
  projectList() {
    return _dio.get('/project/list');
  }

  //专家列表
  expertList() {
    return _dio.get('/expert/list');
  }
}
